﻿using APPFrameworkStudy.Repository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace APPFrameworkStudy.Services
{
    public class BaseServices
    {
        IDataContext _context;
        public BaseServices()
        {
            _context = DalFactory.DataContext;
        }

        /// <summary>
        /// 执行数据持久化操作的数据上下文
        /// </summary>
        public IDataContext DataContext { get { return _context; } }
    }
}
